const config = {
    assetsDir: `src_${Date.now()}`,
    outputDir: 'dist',
}

switch (process.env.VUE_APP_APPNAME) {
    //开发环境
    case "DEV": {
        config.publicPath = "/dyc/";
        config.devServer = {
            proxy: {
                '/api': {
                    target: 'https://vip.sap-unis.com/dyc',
                    changeOrigin: true,
                    pathRewrite: { '^/api': '' }
                }
            }
        };
        break;
    }
    //DOU养车
    //https://vip.sap-unis.com/dyc/pc
    case "DYC": {
        config.publicPath = "/dyc/pc";
        break;
    }
}


module.exports = config;